<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_course_praise".
 *
 * @property int $id
 * @property string $course_id 课程id
 * @property string $evaluate_id 评论id
 * @property string $create_by 评价者
 * @property string $create_time 评价时间
 * @property string $update_by 更新者
 * @property string $update_time 更新时间
 * @property int $del_flag 删除标识
 */
class TCoursePraise extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_course_praise';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['course_id', 'evaluate_id', 'create_by', 'update_by', 'del_flag'], 'integer'],
            [['create_time', 'update_time'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'course_id' => 'Course ID',
            'evaluate_id' => 'Evaluate ID',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
        ];
    }
}
